wayland: Call wl_shell_surface_set_{popup,transient,toplevel} before attach
authorRob Bradford <rob@linux.intel.com>
Mon, 27 Feb 2012 12:55:25 +0000 (12:55 +0000)
committerRob Bradford <rob@linux.intel.com>
Mon, 27 Feb 2012 17:15:12 +0000 (17:15 +0000)
The requests only have an effect if you call them before the buffer is
attached to the surface.

gdk/wayland/gdkwindow-wayland.c

index ed7d616cad5e4b422646e32a2f7caff0668e677b..d76347bb4c6a0268ae5d1ed18ce47138cf779b95 100644 (file)
@@ -1313,11 +1313,11 @@ gdk_wayland_window_process_updates_recurse (GdkWindow *window,
   cairo_rectangle_int_t rect;
   int i, n;
 
+  gdk_wayland_window_map (window);
+
   if (impl->cairo_surface)
     gdk_wayland_window_attach_image (window);
 
-  gdk_wayland_window_map (window);
-
   n = cairo_region_num_rectangles(region);
   for (i = 0; i < n; i++)
     {